extends "../ougen-3/ougen-3.gd"


var baseId = ""
var upText1 = "护盾回充效果提高50%"
var upText2 = "穿甲防护将作用于所有伤害类型"
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	addSkill("将自身30%的护甲十倍转化为血量，受到非真实伤害时，若该伤害大于自身护甲，则将其降低50%", "穿甲防护")

func _onBattleStart():
	._onBattleStart()
	attTurn.maxHp += att.def * 3
	attTurn.def -= att.def * 0.3

func _onHurt(atkInfo):
	if (atkInfo.hurtType == sys.HurtType.WEAPON  or upgraded == 2) and atkInfo.hurtVal > max(75, att.def):
		atkInfo.hurtVal *= 0.5
	._onHurt(atkInfo)

func upgrade():
	.upgrade()
	if upgraded == 1:
		p3 = 1.5